Skip to content

Remove React integration from Astro project#64

Open
shenanigansd wants to merge 2 commits into
mainfrom
claude/laughing-johnson-fh4ynd
Open

Remove React integration from Astro project#64
shenanigansd wants to merge 2 commits into
mainfrom
claude/laughing-johnson-fh4ynd

Conversation

@shenanigansd

Copy link
Copy Markdown
Member

This PR removes React as a dependency and integration from the Astro project, transitioning to a React-free setup.

Summary

The project has been refactored to remove all React-related dependencies and configurations. This includes removing the React integration from Astro, React type definitions, and JSX configuration.

Key changes

  • Removed @astrojs/react integration from astro.config.mjs
  • Removed React and React DOM dependencies from package.json
  • Removed React type definitions (@types/react and @types/react-dom)
  • Removed JSX configuration from tsconfig.json (jsx and jsxImportSource settings)
  • Kept Auth0 SPA integration and Cloudflare adapter intact

Notes

  • The project now relies solely on Astro's native component system
  • Auth0 authentication functionality is preserved through the @auth0/auth0-spa-js package
  • Lock file was updated to reflect the removal of React and its transitive dependencies

https://claude.ai/code/session_018nJ3HBkr7zXFNPG4SYrusA

React was leftover boilerplate from the Astro starter template and was
never actually used — there are no .jsx/.tsx files and no react imports
anywhere in src/. Auth0 is integrated via the framework-agnostic
@auth0/auth0-spa-js SDK, so it does not depend on React.

Remove react, react-dom, @types/react, @types/react-dom, and the
@astrojs/react integration, along with the React JSX compiler options
in tsconfig.json.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018nJ3HBkr7zXFNPG4SYrusA
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 17, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
❌ Deployment failed
View logs
letsbuilda-dev 1d06e3b Jun 17 2026, 07:22 PM

Resolve dependency conflicts from the #63 dependency-group bump: keep
main's non-React version bumps (@astrojs/cloudflare ^13.7.0,
@auth0/auth0-spa-js ^2.21.1, and the devDependency bumps) while keeping
React removed per this branch's purpose.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018nJ3HBkr7zXFNPG4SYrusA
@shenanigansd shenanigansd self-assigned this Jun 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants